from flask_restful import fields  # type: ignore

from fields.robot.rob_func_fields import rob_func_fields
from libs.helper import TimestampField

intent_rec_group_fields = {
    "id": fields.String,
    "tenant_id": fields.String,
    "collection_name": fields.String,
    "dataset_id": fields.String,
    "document_id": fields.String,
    "name": fields.String,
    "descrip": fields.String,
    "doc_language": fields.String,
    "created_at": TimestampField,
    "updated_at": TimestampField,
    "created_by": fields.String,
    "updated_by": fields.String,
    "cmds":  fields.List(fields.Nested(rob_func_fields)),
}

intent_rec_group_pagenation_fields={
    "total":fields.Integer,
    "hasMore":fields.Boolean,
    "groups":fields.List(fields.Nested(intent_rec_group_fields))
}